package com.study.designPattern.observer.example;

/**
 * 创建人： HBZ，时间： 2017/8/22 11:34.
 * 说明：
 */
public class Cashier extends JobStation{
    private String cashierState;
    private Customer customer;

//    public Cashier(Customer customer){
//        this.customer=customer;
//    }

    @Override
    public void Update(Customer customer) {
        if (customer.getCustomerState() == "已付款")
        {
            System.out.println("我是出纳员，我给登记入账。");
            cashierState = "已入账";
        }
    }
}
